package model;

import java.util.Date;

import javax.persistence.Embedded;
import javax.persistence.Id;

public class UserProfile {

	@Id String email;
	String jid;
	String fbid;
	String name;
	String gender;	

	Date createtime;
	int range;

	@Embedded UserStatus status;
		
	public UserProfile() {
		super();
	}
	
	public UserProfile(String email, String fbid, String name,  
			String gender)
			
	{
		super();
		this.email = email;
		this.fbid = fbid;
		this.name = name;
		this.gender = gender;
		this.createtime = new Date();
		this.status = new UserStatus();
		this.range = 500;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getFbid() {
		return fbid;
	}

	public void setFbid(String fbid) {
		this.fbid = fbid;
	}
	
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public UserStatus getStatus() {
		return status;
	}

	public void setStatus(UserStatus status) {
		this.status = status;
	}
	
	public String getJid() {
		return jid;
	}

	public void setJid(String jid) {
		this.jid = jid;
	}
	
	public String getGender() {
		return gender;
	}

	public void setGender(String gender) {
		this.gender = gender;
	}
	
	public int getRange() {
		return range;
	}

	public void setRange(int range) {
		this.range = range;
	}
}
